<?php
/**
 * Description of MemberModelclass
 *
 * @author Mike
 */
class HouseViewModel extends ViewModel {

    public $viewFields = array(
        'House' => array('*','_type'=>'left'),
        'Attach' => array('filename','path','url','attachfunc','_on'=>'Attach.house_id = House.id'),
        'Hotel' => array('district','name'=>'hname','address','_on'=>'Hotel.id = House.hotel_id'),
        'Price' => array('start_day','end_day','price','_on'=>'Price.house_id = House.id'),
    );
}
?>
